package com.yjj.springboot3.model.json;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 聊天消息实体类
 */
public class ChatMessage {
    
    /**
     * 消息内容
     */
    @JsonProperty("content")
    private String content;
    
    /**
     * 消息类型（USER, ASSISTANT）
     */
    @JsonProperty("type")
    private String type;
    
    /**
     * Spring AI 消息类型名称
     */
    @JsonProperty("messageType")
    private String messageType;
    
    public ChatMessage() {
    }
    
    public ChatMessage(String content, String type, String messageType) {
        this.content = content;
        this.type = type;
        this.messageType = messageType;
    }
    
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    public String getMessageType() {
        return messageType;
    }
    
    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }
    
    @Override
    public String toString() {
        return "ChatMessage{" +
                "content='" + content + '\'' +
                ", type='" + type + '\'' +
                ", messageType='" + messageType + '\'' +
                '}';
    }
}
